add_library(protocol
    JsonRpcHandlerImpl.cpp
    JsonRpcMessageParser.cpp
    JsonRpcMessageSerializer.cpp
)

target_include_directories(protocol
    PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/../../include

    PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}/../../include/protocol
)

target_link_libraries(protocol
    PRIVATE
    Qt5::Core
    message_serialization
)

set_target_properties(protocol PROPERTIES
    CXX_STANDARD 11
    CXX_STANDARD_REQUIRED ON
)
